<?php foreach($models as $m):?>
<option value="<?php echo $m->getId()?>"><?php echo $m->getName()?></option>
<?php endforeach;?>